var utils = require("../../utils/utils");
var ocrGml = require("../../utils/ocrGml");
var time = require("../../utils/time");
var ad = require("../appCommon/fanQieAd");
var pointMap = {
  我的: {
    points: [
      // prettier-ignore
      576, 1522, 720, 1618,
    ],
    size: {
      x: 720,
      y: 1650,
    },
  },
  去赚钱: {
    points: [
      // prettier-ignore
      24, 541, 696, 785,
    ],
    size: {
      x: 720,
      y: 1650,
    },
  },
};
function inHome() {
  // prettier-ignore
  var contents = [
          "首页",
          "我的"
      ]
  var result = ocrGml.captureExistAll(contents, true);
  return result;
}
function toTask() {
  console.log("前往-首页任务-");
  utils.clickPointMap(pointMap["我的"]);
  sleep(utils.getRandom(2.5, 4.5, 1000));
  utils.clickPointMap(pointMap["去赚钱"]);
}
var storage = utils.getStorage(time.str("YYYY-MM-dd") + "西瓜");

exports.pointMap = pointMap;
exports.inHome = inHome;
exports.toTask = toTask;
exports.storage = storage;
exports.ad = ad;
